package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品标签表
 * @TableName tb_goods_tags
 */
@TableName(value ="tb_goods_tags")
@Data
public class GoodsTags extends Object implements Serializable {
    /**
     * 主键自增,数据唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标签名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 标签的详细描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 标签在前台展示的颜色(例如:#FF0000)
     */
    @TableField(value = "color")
    private String color;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}